var caseVM = avalon.define("case", function(vm) {
	var jumbotronImg = "img/case/jumbotron.png";
	var jumbotronXSImg = "img/mobile/case/jumbotron.jpg";
	vm.caseJumbotronImg = jumbotronImg;
	
	//设置大图
	function setJumbotronImg(){
		var width = document.body.clientWidth;
		if(width < 768){
			vm.caseJumbotronImg = jumbotronXSImg;
		}
		else{
			vm.caseJumbotronImg = jumbotronImg;
		}
	}
	setJumbotronImg();
	//监听屏幕尺寸
	vm.$watch('resize',function(){
		setJumbotronImg();
	});
});

